{% extends 'base.html' %}
{% load staticfiles %}

{#<head>#}
{##}
{# <!-- code css -->#}
{#    <link href="{% static 'css/code.css' %}" rel="stylesheet" type="text/css">#}
{##}
{#</head>#}

{% block title %}<title>{{ article.title }} -以谁为师的博客</title> {% endblock %}


{% block content %}

    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">

                <div class="row-fluid">

                    <!-- 文章内容 -->
                    <div class="span8 l_box f_l">
                        <h3 class="text-center">
                            {{ article.title }}
                        </h3>
                        <p class="text-center">{{ article.publish.date }}&nbsp&sdot;
                            浏览量:&nbsp{{ article.view }}&nbsp&nbsp&nbsp

                            {% if user_login %}
                                <a href="/admin/wiki/article/{{ article.pk }}/change/"
                                   class="glyphicon glyphicon-wrench"></a>
                            {% endif %}
                        </p>

                        <br/>
                        {{ article.body |safe }}
                    </div>


                    <!-- 右侧栏 -->
                    <div class="side">
                        <br/><br/>

                        {% if toc %}
                            <h4>
                                目录
                            </h4>

                            {{ toc|safe }}

                        {% endif %}



                    </div>




                   <!-- 文尾声明 -->
                <div class="cloud bg-color animation-div">
                  <hr/>


                    <h4 class="index-title"><i class="el-tags"></i>标签</h4>


                    <ul id="3dcloud">
                        {% for tag in detail_tag %}
                            <li><a href="{% url "wiki:tag" %}{{ tag }}" title="标签：{{ tag }} ">{{ tag }}</a></li>
                        {% endfor %}
                    </ul>
                </div>






                </div>


            </div>

        </div>
    </div>




{% endblock %}
